# -*- coding: utf-8 -*-

from django.db import models

# Create your models here.


class Tags(models.Model):
    """
    标签信息表
    """
    tag_name = models.CharField(max_length=24, null=False, unique=True, verbose_name=u'标签名')
    create_time = models.DateTimeField(auto_now_add=True, verbose_name=u'创建时间')

    def __unicode__(self):
        return self.tag_name

    class Meta:
        verbose_name = u'标签分类'
        verbose_name_plural = verbose_name
        db_table = 'tags'
